package part2;

public class ClassB implements X {
	private int ydata;
	public ClassB(int y) {
		ydata = y;
	}
	public int getx() {
		return x;
	}
	public int gety() {
		return ydata;
	}
	public void sety(int y) {
		if (y > 0)
			ydata = y;
	}
}
